home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000165_fdc@columbia.edu_Mon Dec 9 13:45:31 EST 2002.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
2KB
|
39 lines
Article: 13946 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Help with date/time formatting in kermit
Date: 9 Dec 2002 13:45:25 -0500
Organization: Columbia University
Lines: 22
Message-ID: <at2oc5$i9$1@watsol.cc.columbia.edu>
References: <at2nlt$s8p$1@cpimail.cpicorp.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1039459526 14204 128.59.39.139 (9 Dec 2002 18:45:26 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 9 Dec 2002 18:45:26 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13946
In article <at2nlt$s8p$1@cpimail.cpicorp.com>,
Derek Chen-Becker <dbecker@cpicorp.com> wrote:
: I'm trying to generate a timestamp file with a filename including
: the FTP MDTM formatted time (YYYYMMDDhhmmss) and I was wondering if
: there's a better way to do it than:
:
: assign parts \fsplit(\v(time),&t,":")
: assign filename timestamp.\v(ndate)\fjoin(&t,"",0,1)
:
This is simpler:
\fsubstitute(\v(timestamp),:\32,)
: I was reading the kermit 7.0 and 8.0 supplements along with our copy of
: "Using C-Kermit", and although it looks like kermit can parse a lot of
: different date formats, I can't figure out how to make it write to a
: specific date format.
:
Dates are always output in the same (easily parsable) format, but you
you can use string and other functions to reformat them any way you want.
- Frank